package com.attendance.www.hr.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.attendance.www.hr.beans.RequestBean;
import com.attendance.www.hr.entitys.Request;

public interface RequestExtMapper {
	
	//查询休假申请信息
	List<RequestBean> getFurloughRequestList(@Param("requestBean")RequestBean requestBean,@Param("startNum")Integer startNum,@Param("pageCount")Integer pageCount);
	
	//查询加班申请信息
	List<RequestBean> getWorkRequestList(@Param("requestBean")RequestBean requestBean,@Param("startNum")Integer startNum,@Param("pageCount")Integer pageCount);
	
	//查询出差或外出申请信息
	List<RequestBean> getAwayRequestList(@Param("requestBean")RequestBean requestBean,@Param("startNum")Integer startNum,@Param("pageCount")Integer pageCount);
	
	int countByRequestBean(@Param("requestBean")RequestBean requestBean);
	
	//查询开始日期和结束日期范围
	int getRangeRequestCount(@Param("requestBean")RequestBean requestBean,@Param("requestId")Integer requestId);

	List<RequestBean> getSpecialHolidayById(@Param("employeeId")Integer employeeId);
	
	List<Request> getRequestByApprovalState(@Param("requestBean")RequestBean requestBean);
}
